package by.exposit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

/**
 * Created by HaRiA on 24.07.2014.
 */
 @Controller
@RequestMapping("users/admin")
public class AdminController extends UserController
{
     @Override
    @RequestMapping(value = "/menu",method ={ RequestMethod.GET})
    public ModelAndView home(HttpSession session, Model model)
    {
        session.getAttribute("user");
        ModelAndView mav= new ModelAndView();
        mav.setViewName("users/admin/menu");
        return mav;
    }
}
